#ifndef   __APP_H__
#define   __APP_H__

enum
{
	RESET,
	START_APP,
	EXIT,
	GET_COMMAND,
	STATE_WAIT_FOR_ZERO,
	STATE_VOLTAGE_MEASUREMENT,
	STATE_WAIT_FOR_ONE,
	CHECK_FOR_ERROR,
	WAIT_FOR_ANSWER,
	WAIT_FOR_RF_RECEIVE,
	WAIT_FOR_USER_INPUT,
	SEND_COMMAND	
};

typedef void (*app_t) (void);
extern app_t app;

extern unsigned long SerNum;

void app_init ( void );
void ainp_drive ( void );

#endif

